{% extends 'mpa/common/base.html' %}
{% load static %}

{% block content %}
        <div class="wrapper">
            <div class="container">

                <!-- Page-Title -->
                <div class="row">
                    <div class="col-sm-12">
                        <div class="btn-group pull-right">
                            <button type="button" class="btn btn-primary dropdown-toggle waves-effect waves-light" data-toggle="dropdown" aria-expanded="false">Settings <span class="m-l-5"><i class="fa fa-cog"></i></span></button>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="#">Action</a></li>
                                <li><a href="#">Another action</a></li>
                                <li><a href="#">Something else here</a></li>
                                <li class="divider"></li>
                                <li><a href="#">Separated link</a></li>
                            </ul>
                        </div>
                        <h4 class="page-title"> Nestable Lists</h4>
                    </div>
                </div>


                <div class="row">
                    <div class="col-lg-12">
                        <div class="text-left" id="nestable_list_menu">
                            <button type="button" class="btn btn-pink waves-effect waves-light" data-action="expand-all">Expand All</button>
                            <button type="button" class="btn btn-purple waves-effect waves-light" data-action="collapse-all">Collapse All</button>
                        </div>
                    </div>
                </div>
                <!-- End row -->



                <br>

                <div class="row">
                    <div class="col-sm-6">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title">Nestable Lists 1</h3>
                            </div>
                            <div class="panel-body">
                                <div class="dd" id="nestable_list_1">
                                      <ol class="dd-list">
                                          <li class="dd-item" data-id="1">
                                              <div class="dd-handle">Item 1</div>
                                          </li>
                                          <li class="dd-item" data-id="2">
                                              <div class="dd-handle">Item 2</div>
                                              <ol class="dd-list">
                                                  <li class="dd-item" data-id="3">
                                                      <div class="dd-handle">Item 3</div>
                                                  </li>
                                                  <li class="dd-item" data-id="4">
                                                      <div class="dd-handle">Item 4</div>
                                                  </li>
                                                  <li class="dd-item" data-id="5">
                                                      <div class="dd-handle">Item 5</div>
                                                      <ol class="dd-list">
                                                          <li class="dd-item" data-id="6">
                                                              <div class="dd-handle">Item 6</div>
                                                          </li>
                                                          <li class="dd-item" data-id="7">
                                                              <div class="dd-handle">Item 7</div>
                                                          </li>
                                                          <li class="dd-item" data-id="8">
                                                              <div class="dd-handle">Item 8</div>
                                                          </li>
                                                      </ol>
                                                  </li>
                                                  <li class="dd-item" data-id="9">
                                                      <div class="dd-handle">Item 9</div>
                                                  </li>
                                                  <li class="dd-item" data-id="10">
                                                      <div class="dd-handle">Item 10</div>
                                                  </li>
                                              </ol>
                                          </li>
                                          <li class="dd-item" data-id="11">
                                              <div class="dd-handle">Item 11</div>
                                          </li>
                                          <li class="dd-item" data-id="12">
                                              <div class="dd-handle">Item 12</div>
                                          </li>
                                      </ol>
                                  </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title">Nestable Lists 2</h3>
                            </div>
                            <div class="panel-body">
                                <div class="dd" id="nestable_list_2">
                                      <ol class="dd-list">
                                          <li class="dd-item" data-id="13">
                                              <div class="dd-handle">Item 13</div>
                                          </li>
                                          <li class="dd-item" data-id="14">
                                              <div class="dd-handle">Item 14</div>
                                          </li>
                                          <li class="dd-item" data-id="15">
                                              <div class="dd-handle">Item 15</div>
                                              <ol class="dd-list">
                                                  <li class="dd-item" data-id="16">
                                                      <div class="dd-handle">Item 16</div>
                                                  </li>
                                                  <li class="dd-item" data-id="17">
                                                      <div class="dd-handle">Item 17</div>
                                                  </li>
                                                  <li class="dd-item" data-id="18">
                                                      <div class="dd-handle">Item 18</div>
                                                  </li>
                                              </ol>
                                          </li>
                                      </ol>
                                  </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- End of row -->



                <div class="row">
                    <div class="col-md-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title">Nestable Lists 3</h3>
                            </div>
                            <div class="panel-body">
                                <div class="dd" id="nestable_list_3">
                                      <ol class="dd-list">
                                          <li class="dd-item dd3-item" data-id="13">
                                              <div class="dd-handle dd3-handle"></div>
                                              <div class="dd3-content">Item 13</div>
                                          </li>
                                          <li class="dd-item dd3-item" data-id="14">
                                              <div class="dd-handle dd3-handle"></div>
                                              <div class="dd3-content">Item 14</div>
                                          </li>
                                          <li class="dd-item dd3-item" data-id="15">
                                              <div class="dd-handle dd3-handle"></div>
                                              <div class="dd3-content">Item 15</div>
                                              <ol class="dd-list">
                                                  <li class="dd-item dd3-item" data-id="16">
                                                      <div class="dd-handle dd3-handle"></div>
                                                      <div class="dd3-content">Item 16</div>
                                                  </li>
                                                  <li class="dd-item dd3-item" data-id="17">
                                                      <div class="dd-handle dd3-handle"></div>
                                                      <div class="dd3-content">Item 17</div>
                                                  </li>
                                                  <li class="dd-item dd3-item" data-id="18">
                                                      <div class="dd-handle dd3-handle"></div>
                                                      <div class="dd3-content">Item 18</div>
                                                  </li>
                                              </ol>
                                          </li>
                                      </ol>
                                  </div>
                            </div>
                        </div>
                    </div>
                </div> <!-- End row -->


                <!-- Footer -->
                <footer class="footer text-right">
                    <div class="container">
                        <div class="row">
                            <div class="col-xs-6">
                                2016 © Moltran.
                            </div>
                            <div class="col-xs-6">
                                <ul class="pull-right list-inline m-b-0">
                                    <li>
                                        <a href="#">About</a>
                                    </li>
                                    <li>
                                        <a href="#">Help</a>
                                    </li>
                                    <li>
                                        <a href="#">Contact</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </footer>
                <!-- End Footer -->

            </div>
            <!-- end container -->


        </div>
{% endblock %}

{% block static %}
    <link href="{% static 'mpa/plugins/nestable/jquery.nestable.css' %}" rel="stylesheet">
    <!--Nestable js-->
    <script src="{% static 'mpa/plugins/nestable/jquery.nestable.js' %}"></script>
    <script src="{% static 'mpa/pages/nestable.js' %}"></script>
{% endblock %}